﻿
namespace B2B.Web
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Data;
    using System.Linq;
    using System.ServiceModel.DomainServices.EntityFramework;
    using System.ServiceModel.DomainServices.Hosting;
    using System.ServiceModel.DomainServices.Server;


    // Implements application logic using the b2bEntities context.
    // TODO: Add your application logic to these methods or in additional methods.
    // TODO: Wire up authentication (Windows/ASP.NET Forms) and uncomment the following to disable anonymous access
    // Also consider adding roles to restrict access as appropriate.
    // [RequiresAuthentication]
    [EnableClientAccess()]
    public class b2bDomainService : LinqToEntitiesDomainService<b2bEntities>
    {

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'Barkodlar' query.
        public IQueryable<Barkod> GetBarkodlar()
        {
            return this.ObjectContext.Barkodlar;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'CariAdresleri' query.
        public IQueryable<CariAdres> GetCariAdresleri()
        {
            return this.ObjectContext.CariAdresleri;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'CariHesaplar' query.
        public IQueryable<CariHesap> GetCariHesaplar()
        {
            return this.ObjectContext.CariHesaplar;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'CariHesapTeminatlari' query.
        public IQueryable<CariHesapTeminati> GetCariHesapTeminatlari()
        {
            return this.ObjectContext.CariHesapTeminatlari;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'CariHesapYetkilileri' query.
        public IQueryable<CariHesapYetkili> GetCariHesapYetkilileri()
        {
            return this.ObjectContext.CariHesapYetkilileri;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'Depolar' query.
        public IQueryable<Depo> GetDepolar()
        {
            return this.ObjectContext.Depolar;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'Kullanicilar' query.
        public IQueryable<Kullanici> GetKullanicilar()
        {
            return this.ObjectContext.Kullanicilar;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'SatisSartlari' query.
        public IQueryable<SatisSarti> GetSatisSartlari()
        {
            return this.ObjectContext.SatisSartlari;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'SorumlulukMerkezleri' query.
        public IQueryable<SorumlulukMerkezi> GetSorumlulukMerkezleri()
        {
            return this.ObjectContext.SorumlulukMerkezleri;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'Stoklar' query.
        public IQueryable<Stok> GetStoklar()
        {
            return this.ObjectContext.Stoklar;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'StokAltgruplari' query.
        public IQueryable<StokAltgrup> GetStokAltgruplari()
        {
            return this.ObjectContext.StokAltgruplari;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'StokAnaGruplari' query.
        public IQueryable<StokAnaGrup> GetStokAnaGruplari()
        {
            return this.ObjectContext.StokAnaGruplari;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'StokCariIskontoTanimlari' query.
        public IQueryable<StokCariIskontoTanimi> GetStokCariIskontoTanimlari()
        {
            return this.ObjectContext.StokCariIskontoTanimlari;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'StokDetaylari' query.
        public IQueryable<StokDetay> GetStokDetaylari()
        {
            return this.ObjectContext.StokDetaylari;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'StokKategorileri' query.
        public IQueryable<StokKategori> GetStokKategorileri()
        {
            return this.ObjectContext.StokKategorileri;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'StokMarkalari' query.
        public IQueryable<StokMarka> GetStokMarkalari()
        {
            return this.ObjectContext.StokMarkalari;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'StokSatisFiyatListeleri' query.
        public IQueryable<StokSatisFiyatListe> GetStokSatisFiyatListeleri()
        {
            return this.ObjectContext.StokSatisFiyatListeleri;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'StokSatisFiyatListeTanimlari' query.
        public IQueryable<StokSatisFiyatListeTanimi> GetStokSatisFiyatListeTanimlari()
        {
            return this.ObjectContext.StokSatisFiyatListeTanimlari;
        }

        // TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'StokUreticileri' query.
        public IQueryable<StokUretici> GetStokUreticileri()
        {
            return this.ObjectContext.StokUreticileri;
        }
    }
}


